﻿using P2P.Client.Enums;
using P2P.Client.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace P2P.Client.Handler
{
    public class HeartbeatHandler
    {
        private ApiProtocol apiProtocol;

        public HeartbeatHandler(ApiProtocol apiProtocol)
        {
            this.apiProtocol = apiProtocol;
        }

        public void MainHeartbeatAck() 
        {
            SharedModel.Instance.MainServerInfo.LastActiveTime = DateTime.Now;
        } 

        public void TurnHeartbeatAck()
        {
            SharedModel.Instance.TurnServerInfo.LastActiveTime = DateTime.Now;
        }
    }
}
